
package com.insigma.business.qrcode.soldier._consumer.impl;


import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.SoldierApplyCheckDTO;
import com.insigma.business.qrcode.soldier.dto.SoldierApplyCheckInsertRequest;
import com.insigma.business.qrcode.soldier._consumer.SoldierApplyCheckConsumer;
import com.insigma.business.qrcode.soldier._provider.SoldierApplyCheckProvider;
import com.insigma.business.qrcode.soldier.service.SoldierApplyCheckService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("soldierApplyCheckConsumer")
public class SoldierApplyCheckConsumerImpl implements SoldierApplyCheckConsumer {

    @Resource
    private SoldierApplyCheckProvider soldierApplyCheckProvider;

    @Resource
    SoldierApplyCheckService soldierApplyCheckService;


    @Override
    public BaseResponse<List<SoldierApplyCheckDTO>> getSoldierApplyCheckInfo(Long applyId) {
        return soldierApplyCheckProvider.getSoldierApplyCheckInfo(applyId);
    }

    @Override
    public BaseResponse<Integer> deleteByApplyId(String applyId) {
        return soldierApplyCheckProvider.deleteByApplyId(applyId);
    }

    @Override
    public BaseResponse<String> insertSoldierApplyCheck(SoldierApplyCheckInsertRequest insertRequest) {
        return soldierApplyCheckProvider.insertSoldierApplyCheck(insertRequest);
    }
}
